<include file="Public:header" />

<script language="JavaScript">
    ifcheck = true;
    function CheckAll(form)
    {
        for (var i=0;i<form.elements.length-2;i++)
        {
            var e = form.elements[i];
            e.checked = ifcheck;
        }
        ifcheck = ifcheck == true ? false : true;
    }
</script>
<style>
.accounttitle h1{padding:0;}
</style>
<div class="accounttitle"><h1>系统公告 </h1></div>
<div class="ncenter_box"> 
<form name="form3" method="post" action="__URL__/NewsAC">
<table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="1" id="tb1" bgcolor="#b9c8d0">
    <thead>
        <tr>
        <th width="5%"></th>
        <th width="9%"><span>新闻类型</span></th>
        <th width="25%"><span>新闻标题</span></th>
       <!-- <th width="20%"><span>英文标题</span></th>-->
        <th width="16%"><span>发布时间</span></th>
        <th width="8%"><span>置顶</span></th>
        <th width="9%"><span>新闻状态</span></th>
        <th width="8%"><span>操作</span></th>
        </tr>
    </thead>
    <volist name="list" id="vo">
    <tr align="center">
        <td><div align="center">
          <input type="checkbox" name="tabledb[]" value="{$vo['id']}" class="btn2" />
        </div></td>
        <td>
          <eq name="vo['type']" value="1">新闻资讯</eq>
          <eq name="vo['type']" value="2">常见问题</eq>
          <eq name="vo['type']" value="3">注册协议</eq>
        </td>
        <td><eq name="vo.baile" value="1"><font color=red>[置顶] </font></eq>{$vo['title']|mysubstr=###,20}</td>
       <!-- <td>{$vo['e_title']|mysubstr=###,20}</td>-->
        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
        <td><eq name="vo['baile']" value="1"><span class="STYLE3">置顶</span></eq><eq name="vo['baile']" value="0">未置顶</eq></td>
        <td><eq name="vo['status']" value="1">启用</eq><eq name="vo['status']" value="0"><span class="STYLE1">禁用</span></eq></td>
        <td><a href="__URL__/News_edit/EDid/{$vo['id']}">编辑</a></td>
    </tr>
    </volist>
</table>
<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td>
        <input name="全选" type="button" class="button_text" id="全选" onclick="CheckAll(this.form)" value="全选"  style="background: #f0ad4e;padding: 2px;border-radius: 3px;color: #fff;"/>	  &nbsp;&nbsp;
        <input type="submit" name="action" value="添加新闻" class="button_text" style="background: #f0ad4e;padding: 2px ;border-radius: 3px;color: #fff;">&nbsp; &nbsp;
        <input type="submit" name="action" value="启用" class="button_text" style="background: #f0ad4e;padding: 2px ;border-radius: 3px;color: #fff;">&nbsp; &nbsp;
        <input type="submit" name="action" value="禁用" class="button_text" style="background: #f0ad4e;padding: 2px ;border-radius: 3px;color: #fff;">&nbsp; &nbsp;
        <input type="submit" name="action" value="设置置顶" class="button_text" style="background: #f0ad4e;padding: 2px ;border-radius: 3px;color: #fff;">&nbsp; &nbsp;
        <input type="submit" name="action" value="取消置顶" class="button_text" style="background: #f0ad4e;padding: 2px;border-radius: 3px;color: #fff;">&nbsp; &nbsp;
        <input type="submit" name="action" value="删除" class="button_text" style="background: #f0ad4e;padding: 2px;border-radius: 3px;color: #fff;"></td>
    </tr>
</table>
</form>
<!--<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">-->
    <!--<tr>-->
        <!--<td>{$page}</td>-->
    <!--</tr>-->
<!--</table>-->
</div>


<include file="Public:footer" />
<script>new TableSorter("tb1");</script>